using System.Collections.Generic;

namespace BTEditor
{
    public class BTLine
    {
        public List<BTNode> ChildList;

        public BTLine()
        {
            ChildList = new List<BTNode>();
        }

        public void RemoveChild(BTNode node)
        {
            if (ChildList.Contains(node))
            {
                ChildList.Remove(node);
            }
        }

        public void RemoveAllChild()
        {
            for (int i = 0; i < ChildList.Count; i++)
            {
                BTEditorProperty.Instance.RemoveNode(ChildList[i]);
            }
            ChildList.Clear();
        }
    }
}